import 'dart:convert';

import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/work_mode_config_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/work_mode_config_entity.g.dart';

///作业方式列表
@JsonSerializable()
class WorkModeConfigEntity extends ChoiceBean {
  WorkModeConfigEntity();

  factory WorkModeConfigEntity.fromJson(Map<String, dynamic> json) =>
      $WorkModeConfigEntityFromJson(json);

  ///	企业编码
  String? companyCode = '';

  ///	创建人
  String? createBy = '';

  ///	创建时间
  String? createDate = '';

  ///	主键ID
  String? id = '';

  ///	修改人
  String? updateBy = '';

  ///	修改时间
  String? updateDate = '';

  ///	作业方式
  String? workMode = '';

  ///	作业8大类型id
  String? workTypeId = '';

  ///	作业8大类型名称
  String? workTypeName = '';

  Map<String, dynamic> toJson() => $WorkModeConfigEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }

  @override
  String getId() {
    return id ?? '';
  }

  @override
  String getShowName() {
    return workMode ?? '';
  }

}
